home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / std.tex < prev    next >
LaTeX Document  |  1994-04-27  |  1.2 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: std.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 73 74 64 20 2d 2d 2d |\section|{std ---|
|00000010| 20 73 74 61 6e 64 61 72 | 64 20 64 65 76 69 61 74 | standar|d deviat|
|00000020| 69 6f 6e 7d 0d 5c 6c 61 | 62 65 6c 7b 66 6e 3a 73 |ion}.\la|bel{fn:s|
|00000030| 74 64 7d 0d 5c 69 6e 64 | 65 78 7b 73 74 64 28 29 |td}.\ind|ex{std()|
|00000040| 7d 0d 5c 69 6e 64 65 78 | 7b 73 74 61 6e 64 61 72 |}.\index|{standar|
|00000050| 64 20 64 65 76 69 61 74 | 69 6f 6e 7d 0d 5c 62 65 |d deviat|ion}.\be|
|00000060| 67 69 6e 7b 72 61 69 6c | 7d 0d 53 74 64 44 65 76 |gin{rail|}.StdDev|
|00000070| 20 3a 20 27 73 74 64 27 | 20 27 28 27 20 28 20 53 | : 'std'| '(' ( S|
|00000080| 63 61 6c 61 72 20 7c 20 | 4d 61 74 72 69 78 20 29 |calar | |Matrix )|
|00000090| 20 27 29 27 20 3b 0d 5c | 65 6e 64 7b 72 61 69 6c | ')' ;.\|end{rail|
|000000a0| 7d 0d 0d 5c 76 65 72 62 | 2b 73 74 64 2b 20 63 61 |}..\verb|+std+ ca|
|000000b0| 6c 63 75 6c 61 74 65 73 | 20 74 68 65 20 73 74 61 |lculates| the sta|
|000000c0| 6e 64 61 72 64 20 64 65 | 76 69 61 74 69 6f 6e 20 |ndard de|viation |
|000000d0| 6f 66 20 74 68 65 20 65 | 6c 65 6d 65 6e 74 73 20 |of the e|lements |
|000000e0| 69 6e 20 74 68 65 0d 61 | 72 67 75 6d 65 6e 74 20 |in the.a|rgument |
|000000f0| 6d 61 74 72 69 78 2e 20 | 20 49 66 20 74 68 65 20 |matrix. | If the |
|00000100| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 61 20 72 6f |argument| is a ro|
|00000110| 77 20 6f 72 20 63 6f 6c | 75 6d 6e 20 76 65 63 74 |w or col|umn vect|
|00000120| 6f 72 2c 20 74 68 65 6e | 0d 74 68 65 20 73 74 61 |or, then|.the sta|
|00000130| 6e 64 61 72 64 20 64 65 | 76 69 61 74 69 6f 6e 20 |ndard de|viation |
|00000140| 6f 66 20 61 6c 6c 20 65 | 6c 65 6d 65 6e 74 73 20 |of all e|lements |
|00000150| 69 73 20 72 65 74 75 72 | 6e 65 64 2e 20 4f 74 68 |is retur|ned. Oth|
|00000160| 65 72 77 69 73 65 0d 5c | 76 65 72 62 2b 73 74 64 |erwise.\|verb+std|
|00000170| 2b 20 72 65 74 75 72 6e | 73 20 61 20 72 6f 77 2d |+ return|s a row-|
|00000180| 6d 61 74 72 69 78 20 66 | 6f 72 6d 65 64 20 62 79 |matrix f|ormed by|
|00000190| 20 74 61 6b 69 6e 67 20 | 74 68 65 20 73 74 61 6e | taking |the stan|
|000001a0| 64 61 72 64 0d 64 65 76 | 69 61 74 69 6f 6e 20 6f |dard.dev|iation o|
|000001b0| 66 20 74 68 65 20 65 6c | 65 6d 65 6e 74 73 20 69 |f the el|ements i|
|000001c0| 6e 20 65 61 63 68 20 63 | 6f 6c 75 6d 6e 2e 0d 0d |n each c|olumn...|
|000001d0| 24 5c 4c 6f 6e 67 72 69 | 67 68 74 61 72 72 6f 77 |$\Longri|ghtarrow|
|000001e0| 24 20 54 68 69 73 20 69 | 73 20 6e 6f 74 20 61 6e |$ This i|s not an|
|000001f0| 20 5c 52 4c 61 42 5c 20 | 62 75 69 6c 74 2d 69 6e | \RLaB\ |built-in|
|00000200| 20 66 75 6e 63 74 69 6f | 6e 2e 20 20 54 68 69 73 | functio|n. This|
|00000210| 20 66 75 6e 63 74 69 6f | 6e 0d 69 73 20 6e 6f 72 | functio|n.is nor|
|00000220| 6d 61 6c 6c 79 20 6c 6f | 61 64 65 64 20 6f 6e 20 |mally lo|aded on |
|00000230| 73 74 61 72 74 2d 75 70 | 20 66 72 6f 6d 20 74 68 |start-up| from th|
|00000240| 65 20 5c 76 65 72 62 2b | 6d 73 74 2e 72 2b 20 66 |e \verb+|mst.r+ f|
|00000250| 69 6c 65 20 69 6e 20 74 | 68 65 0d 73 74 61 6e 64 |ile in t|he.stand|
|00000260| 61 72 64 20 5c 76 65 72 | 62 2b 72 6c 69 62 2b 20 |ard \ver|b+rlib+ |
|00000270| 64 69 72 65 63 74 6f 72 | 79 2e 20 55 73 65 20 6f |director|y. Use o|
|00000280| 66 20 74 68 65 20 5c 76 | 65 72 62 2b 2d 72 2b 20 |f the \v|erb+-r+ |
|00000290| 6f 70 74 69 6f 6e 2c 20 | 69 6e 63 6f 72 72 65 63 |option, |incorrec|
|000002a0| 74 6c 79 20 0d 73 65 74 | 74 69 6e 67 20 74 68 65 |tly .set|ting the|
|000002b0| 20 5c 76 65 72 62 2b 52 | 4c 41 42 5f 4c 49 42 5f | \verb+R|LAB_LIB_|
|000002c0| 44 49 52 2b 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |DIR+ env|ironment|
|000002d0| 61 6c 20 76 61 72 69 61 | 62 6c 65 2c 20 6f 72 20 |al varia|ble, or |
|000002e0| 6d 6f 64 69 66 79 69 6e | 67 0d 5c 76 65 72 62 2b |modifyin|g.\verb+|
|000002f0| 73 74 64 2e 72 2b 20 6d | 61 79 20 6d 61 6b 65 20 |std.r+ m|ay make |
|00000300| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 75 6e |this fun|ction un|
|00000310| 61 76 61 69 6c 61 62 6c | 65 2e 0d 0d 5c 70 61 72 |availabl|e...\par|
|00000320| 61 67 72 61 70 68 7b 45 | 78 61 6d 70 6c 65 7d 0d |agraph{E|xample}.|
|00000330| 5c 69 6e 64 65 78 7b 65 | 78 61 6d 70 6c 65 20 6f |\index{e|xample o|
|00000340| 66 20 73 74 64 28 29 7d | 0d 5c 69 6e 64 65 78 7b |f std()}|.\index{|
|00000350| 73 74 64 28 29 21 65 78 | 61 6d 70 6c 65 7d 0d 5c |std()!ex|ample}.\|
|00000360| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0d |begin{ve|rbatim}.|
|00000370| 3e 20 72 61 6e 64 28 22 | 6e 6f 72 6d 61 6c 22 2c |> rand("|normal",|
|00000380| 20 31 30 2e 30 2c 20 32 | 2e 30 20 29 3b 0d 3e 20 | 10.0, 2|.0 );.> |
|00000390| 61 20 3d 20 72 61 6e 64 | 28 31 2c 31 30 30 29 3b |a = rand|(1,100);|
|000003a0| 0d 3e 20 6d 65 61 6e 28 | 61 29 0d 20 20 20 20 20 |.> mean(|a). |
|000003b0| 39 2e 37 36 0d 3e 20 73 | 74 64 28 61 29 0d 20 20 |9.76.> s|td(a). |
|000003c0| 20 20 20 32 2e 30 34 0d | 3e 20 62 20 3d 20 72 61 | 2.04.|> b = ra|
|000003d0| 6e 64 28 31 2c 31 30 29 | 0d 20 62 20 3d 0d 20 6d |nd(1,10)|. b =. m|
|000003e0| 61 74 72 69 78 20 63 6f | 6c 75 6d 6e 73 20 31 20 |atrix co|lumns 1 |
|000003f0| 74 68 72 75 20 36 0d 20 | 20 20 20 20 38 2e 33 35 |thru 6. | 8.35|
|00000400| 20 20 20 20 20 20 20 37 | 2e 38 36 20 20 20 20 20 | 7|.86 |
|00000410| 20 20 35 2e 34 38 20 20 | 20 20 20 20 20 37 2e 30 | 5.48 | 7.0|
|00000420| 35 20 20 20 20 20 20 20 | 31 32 2e 33 20 20 20 20 |5 |12.3 |
|00000430| 20 20 20 31 30 2e 33 20 | 20 0d 0d 20 6d 61 74 72 | 10.3 | .. matr|
|00000440| 69 78 20 63 6f 6c 75 6d | 6e 73 20 37 20 74 68 72 |ix colum|ns 7 thr|
|00000450| 75 20 31 30 0d 20 20 20 | 20 20 31 33 2e 31 20 20 |u 10. | 13.1 |
|00000460| 20 20 20 20 20 36 2e 37 | 33 20 20 20 20 20 20 20 | 6.7|3 |
|00000470| 31 31 2e 34 20 20 20 20 | 20 20 20 37 2e 31 38 20 |11.4 | 7.18 |
|00000480| 20 0d 3e 20 6d 65 61 6e | 28 62 29 0d 20 20 20 20 | .> mean|(b). |
|00000490| 20 38 2e 39 36 0d 3e 20 | 73 74 64 28 62 29 0d 20 | 8.96.> |std(b). |
|000004a0| 20 20 20 20 20 32 2e 36 | 0d 5c 65 6e 64 7b 76 65 | 2.6|.\end{ve|
|000004b0| 72 62 61 74 69 6d 7d 0d | 0d 53 65 65 20 61 6c 73 |rbatim}.|.See als|
|000004c0| 6f 3a 20 50 61 67 65 7e | 5c 70 61 67 65 72 65 66 |o: Page~|\pageref|
|000004d0| 7b 66 6e 3a 6d 65 61 6e | 7d 20 5c 76 65 72 62 2b |{fn:mean|} \verb+|
|000004e0| 6d 65 61 6e 28 29 2b 2e | 0d 0d 5c 6e 65 77 70 61 |mean()+.|..\newpa|
|000004f0| 67 65 0d 0d 0d 0d | |ge.... | |
+--------+-------------------------+-------------------------+--------+--------+